#include "DictProducer.h"
#include "DictProducer.cc"
#include "SplicTool1.h"
class DictProducer;
class WordSegmentation;
int main(){
    WordSegmentation split;
    DictProducer dict("./conf/zh",split);
    DictProducer _dict("./conf/en",split);
    dict.readstopwords("stop_words_zh.txt");
    //printf("1\n");
    dict.buildCnDict();
    //printf("2\n");
    dict.buildIndex();
    dict.storeDict("data/dict_zh.txt");
    //printf("4\n");
    dict.outputIndex("data/index_zh.txt");
    //printf("5\n");
    _dict.readstopwords("stop_words_eng.txt");
    //printf("6\n");
    _dict.buildEnDict();
    //printf("7\n");
    _dict.buildIndex();
    //printf("8\n");
    _dict.storeDict("data/dict_en.txt");
    //printf("9\n");
    _dict.outputIndex("data/index_en.txt");
    //printf("10\n");
    return 0;

} 
